/**
 * 通用混合
 * */
export default {
    data() {
        return {
            funaskData: "",
            loading: false,
            total: 0,
        };
    },
    mounted() {
        this.initial();
    },
    methods: {
        askData() {
            this.loading = true;
            this.funaskData(this.params).then((res) => {
                this.loading = false;
                this.askDatas(res);
            });
        },
        /* @函数功能: 分页 */
        changepage(e) {
            this.params.page = e;
            this.askData();
        },
        /* @函数功能: 每页数量 */
        changepageSize(e) {
            this.params.pageSize = e;
            this.askData();
        },
    },
};
